const error = 'my error';

try {
  throw new Error('自定义错误', '错误信息');
} catch (error) {
  console.log(error);
}

console.log(error);
